<!--<include file="Core_Extend::template('header')" />-->

<!--{:Core_Extend::validate()}-->

<!--{script}-->
function pmSend(){
	$("#sendpm_submit").attr("disabled", "disabled");
	$("#sendpm_submit").val('<!--<lang package='Template'>-->发送<!--</lang>-->...');
	$("#sendpm_submit").attr("disabled", false);
	Q.AjaxSubmit('sendpmform','<!--{:Q::U('home://pm/sendpm')}-->','result',complete);
}

function complete(data,status){
	$("#sendpm_submit").attr("disabled", false);
	$("#sendpm_submit").val('<!--<lang package='Template'>-->发送<!--</lang>-->');
	if(status==1){
		$('#pm_subject').val('');
		$('#pm_message').val('');
		setTimeout(function(){window.location.href=data.jumpurl;},1000);
	}
}

$(document).ready(function(){
	$("#pm_message").focus();
});

checkForm(pmSend);
<!--{/script}-->

	<div class="container_12">
		<ul class="breadcrumb">
			<li><a href="<!--{:__APP__}-->" title="<!--<lang package='__COMMON_LANG__@Common'>-->主页<!--</lang>-->"><!--<lang package='__COMMON_LANG__@Common'>-->主页<!--</lang>--></a>&nbsp;<span class="divider">/</span>&nbsp;</li>
			<li><!--<lang package='Template'>-->发送短消息<!--</lang>--></li>
		</ul>
	</div>
			
	<div class="container_12 container_box">
		<!--<include file="pmnotice+menu" />-->
		
		<div class="grid_10">
			<!--<include file="pm+menu" />-->
			
			<!--{if isset($oPm)}-->
			<div class="container_12">
				<div class="grid_9">
					<table class="table table-bordered">
						<thead>
							<tr>
								<th colspan="2"><!--<lang package='Template'>-->回复<!--</lang>-->&nbsp;<a href="<!--{:Q::U('home://space@?id='.$oPm->pm_msgfromid)}-->" target="_blank"><!--{$oPm:pm_msgfrom}--></a></th>
							</tr>
						</thead>
						<tbody>
							<tr id="pm_<!--{$oPm:pm_id}-->" class="pmlist-odd">
								<td>
									<div class="left" style="padding-right:20px;"><a href="<!--{:Q::U('home://space@?id='.$oPm->pm_msgfromid)}-->" target="_blank"><img src="<!--{:Core_Extend::avatar( $oPm->pm_msgfromid,'small' )}-->" width="48px" height="48px" class="thumbnail" /></a></div>

									<!--{if $oPm['pm_subject']}--><a href="<!--{:Q::U('home://pm/show?id='.$oPm->pm_id)}-->"><h5><!--{$oPm['pm_subject']}--></h5></a><!--{/if}-->
									<p class="pm-cite"><a href="<!--{:Q::U('home://space@?id='.$oPm->pm_msgfromid)}-->" target="_blank"><!--{$oPm:pm_msgfrom}--></a>&nbsp;<em><!--{$oPm:create_dateline|Core_Extend+timeFormat}--></em></p>
									<p class="pm-summary"><!--{$oPm:pm_message|Pm_Extend+ubb}--></p>
								</td>
							</tr>
							<tr>
								<td colspan="2"><a href="<!--{:Q::U('home://pm/show?id='.$oPm->pm_id.'&uid='.$oPm->pm_msgfromid)}-->"><!--<lang package='Template'>-->查看消息详情<!--</lang>--></a></td>
							<tr>
						</tbody>
					</table>
				</div>
				<div class="grid_2">&nbsp;</div>
				<div class="clearfix"></div>
			</div>
			<!--{/if}-->
			
			<form class="form-horizontal validate" method='post' id="sendpmform" name="sendpmform">
				<fieldset>
					<div class="control-group">
						<div class="controls">
							<div id="result" class="none"></div>
						</div>
					</div>
					<div class="control-group">
						<label class="control-label" for="messageto"><!--<lang package='Template'>-->收件用户<!--</lang>--><em class="red">*</em></label>
						<div class="controls">
							<input class="input-xlarge" id="messageto" name="messageto" type="text" <!--{if !empty($sUserName)}-->readonly="true"<!--{/if}--> value="<!--{$sUserName}-->" required title="<!--<lang package='Template'>-->收件用户不能为空<!--</lang>-->">
							<p class="input_tips"><!--<lang package='Template'>-->多个收件用户或者用户ID用分号(;)或者英文逗号(,)隔开<!--</lang>--></p>
							<p class="input_errortips"></p>
						</div>
					</div>
					<div class="control-group">
						<label class="control-label" for="pm_subject"><!--<lang package='Template'>-->短消息主题<!--</lang>--></label>
						<div class="controls">
							<input class="input-xlarge" id="pm_subject" name="pm_subject" type="text">
							<p class="help-block"><!--<lang package='Template'>-->短消息主题可以为空，其最大字符不能够超过225<!--</lang>--></p>
						</div>
					</div>
					<div class="control-group">
						<label class="control-label" for="pm_message"><!--<lang package='Template'>-->短消息内容<!--</lang>--><em class="red">*</em></label>
						<div class="controls">
							<textarea class="input-xlarge" id="pm_message" name="pm_message" rows="8" style="height:150px;width:70%;" <!--{if !$nDisplaySeccode}-->onkeypress="submitKeycode(event,pmSend);"<!--{/if}--> required title="<!--<lang package='Template'>-->短消息内容不能为空<!--</lang>-->"><!--{$sContent}--></textarea>
							<p class="input_tips"><!--<lang package='Template'>-->短消息内容不能为空，且最大字符不能够超过1000<!--</lang>--></p>
							<p class="input_errortips"></p>
						</div>
					</div>
					<!--{if $nDisplaySeccode==1}-->
					<div class="control-group">
						<label class="control-label" for="seccode"><!--<lang package='__COMMON_LANG__@Common'>-->验证码<!--</lang>--><em class="red">*</em></label>
						<div class="controls">
							<input name="seccode" id="seccode" type="text" class="input-small {required:true,remote:Q.U('home://public/validate_seccode'),messages:{remote:'<!--<lang package='__COMMON_LANG__@Common'>-->验证码错误<!--</lang>-->'}} left" value="" onkeypress="submitKeycode(event,pmSend);">&nbsp;
							<span class="validate_seccode"><span class="input_errortips"></span></span>
							<p class="help-block" style="clear:both;padding-top:10px;"><span id="seccodeImage"><img style="cursor:pointer" onclick="updateSeccode()" src="<!--{:Q::U('home://public/seccode')}-->" /></span></p>
						</div>
					</div>
					<!--{/if}-->
					<div class="form-actions">
						<input type="hidden" name="ajax" value="1">
						<input type="submit" class="btn" id="sendpm_submit" value="<!--<lang package='Template'>-->发送<!--</lang>-->">
					</div>
				</fieldset>
			</form>
		</div>
	</div>

<!--<include file="Core_Extend::template('footer')" />-->